#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.action;

import java.io.Serializable;

import javax.annotation.PostConstruct;
import javax.enterprise.context.SessionScoped;
import javax.inject.Inject;
import javax.inject.Named;

import org.slf4j.Logger;

@SuppressWarnings("serial")
@Named
@SessionScoped
public class TestAction implements Serializable {

	int counter=0;
	
	@Inject
	Logger log;
	
	@PostConstruct
	public void init(){
		log.info("Start");
	}
	
	public String getStr(){
		log.info("About to log, number {} at session",counter++);
		return "String from bean. Number times of request for this session is "+counter;
	}
}